package mapred.base;

import java.io.IOException;
import java.util.Iterator;

import org.apache.hadoop.io.Writable;

public abstract class AbstractCombiner<K extends Writable, V extends Writable>
        extends AbstractReducer<K, V, K, V> {

    @Override
    public void reduce(K key, Iterator<V> values) throws IOException {
        combine(key, values);
    }

    protected abstract void combine(K key, Iterator<V> values)
            throws IOException;

}
